import request from '@/utils/request'

// 查询库存预警查询列表
export function listTnventoryWarning(query) {
  return request({
    url: '/wareManagement/tnventoryWarning/list',
    method: 'get',
    params: query
  })
}

// 查询库存预警查询详细
export function getTnventoryWarning(warningId) {
  return request({
    url: '/wareManagement/tnventoryWarning/' + warningId,
    method: 'get'
  })
}

// 新增库存预警查询
export function addTnventoryWarning(data) {
  return request({
    url: '/wareManagement/tnventoryWarning',
    method: 'post',
    data: data
  })
}

// 修改库存预警查询
export function updateTnventoryWarning(data) {
  return request({
    url: '/wareManagement/tnventoryWarning',
    method: 'put',
    data: data
  })
}

// 删除库存预警查询
export function delTnventoryWarning(warningId) {
  return request({
    url: '/wareManagement/tnventoryWarning/' + warningId,
    method: 'delete'
  })
}
